package com.boot.system.controller;

import cn.dev33.satoken.util.SaResult;
import com.boot.framework.common.R;
import com.boot.system.service.ISysIOnlineUserService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author yangfan
 * @date 2024/3/8
 * @Description
 */
@RestController
@AllArgsConstructor
@RequestMapping("/system/onlineUser")
@Tag(name = "在线用户")
public class SysOnlineUserController {
    private ISysIOnlineUserService onlineUserService;

    @GetMapping("page")
    @Operation(summary = "分页")
    public R page(@RequestParam Map<String, Object> params) {
        return R.ok(onlineUserService.selectPage(params));
    }
}
